---
title: Word Fade In
date: 2024-05-24
description: Text animation which fades in word by word
author: nyxb
published: true
---

<ComponentPreview name="word-fade-in-demo" />


### Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx nyxb@latest add word-fade-in
```

</TabsContent>

<TabsContent value="manual">

<Steps>

Copy and paste the following code into your project.

```text
components/ui/word-fade-in.tsx
```

<ComponentSource name="word-fade-in" />

</Steps>

</TabsContent>

</Tabs>

## Props

| Prop      | Type     | Description                                        | Default        |
| --------- | -------- | -------------------------------------------------- | -------------- |
| className | string   | The class name to be applied to the component      |                |
| delay     | number   | The Delay between each word animation              | 0.15           |
| words     | string   | A Text that is animated word by word               | "word fade in" |
| variants  | Variants | An object containing framer-motion animation props | {}             |
